package day14;

public class homework002 {
    private static  boolean flag;
    private static final Object lock=new Object();
    private static int count;

    public static Object getlock() {
        return lock;
    }

    public static int getCount() {
        return count;
    }

    public static void setCount(int count) {
        homework002.count = count;
    }

    public static boolean isFlag() {
        return flag;
    }

    public static void setFlag(boolean flag) {
        homework002.flag = flag;
    }

    public homework002(boolean flag,int count){
        this.flag = flag;
        this.count=count;
    }
    public homework002() {
        new homework002(true,3);
    }


}
